package com.neuedu.advance;

/**
 * @author 金山
 * 项目：javase
 * site: https://blog.fulfill.com.cn
 * 描述
 * @data 2024/10/1710:59
 */
public class Animal extends SuperClass {

    public String name;
    public int age;
    public double weight;

    public Animal() {
        System.out.println("Animal.Animal1 无参构造方法");
    }

    public Animal(String name, int age, double weight) {
        // super()
        this.name = name;
        this.age = age;
        this.weight = weight;
        System.out.println("Animal.Animal2 有参的构造方法" );
    }

    public void play(){
        System.out.println(" 动物"+name+" 在表演");
    }



}
